<template>
	<view class="">
		<u-popup :show="rainShow" mode="center" @close="closerain">
			<view class="rainpopup">
				<view class="rainpopup-top">
					<view class="rainpopup-top-title">你在红包雨中获得</view>
					<view class="rainpopup-top-jinbi">
						<text>390</text>
						<text>金币</text>
					</view>
				</view>
				<view class="rainpopup-getjinbi">
					<view class="rainpopup-getjinbi-left">
						<view class="xuanleft">
							<text>金币</text>
							<text>390</text>
						</view>
					</view>
					<view class="rainpopup-getjinbi-right">
						<view class="xuanright">
							<text>金币</text>
							<text>780</text>	
						</view>
					</view>
				</view>
				<view class="rainpopup-btn">
					看视频翻倍领取奖励
				</view>
				<view class="rainpopup-tip">
					直接领取
				</view>
			</view>
		</u-popup>
	</view>
</template>

<script>
	export default {
		props:{
			rainShow:{
				type:Boolean,
				default:false
			}
		},
		data(){
			return {
				
			}
		},
		methods:{
			closerain(){
				this.$emit('update:rainShow',false)
				uni.navigateBack()
			}
		}
	}
</script>

<style lang="scss" scoped>
	/deep/ .u-popup__content {
		background-color: transparent !important;
	}
	.rainpopup{
		background-image: url('../../image/rainbg.png');
		width: 646rpx;
		height: 858rpx;
		background-size: 100% 100%;
		background-repeat: no-repeat;
		display: flex;
		flex-direction: column;
		align-items: center;
		&-top{
			margin-top: 59rpx;
			display: flex;
			flex-direction: column;
			align-items: center;
			&-title{
				font-family: Noto Sans SC, Noto Sans SC;
				font-weight: 500;
				font-size: 44rpx;
				color: #FE554A;
			}
			&-jinbi{
				margin-top: 20rpx;
				text{
					font-family: Inter, Inter;
					font-weight: 500;
					color: #F9A540;
					&:nth-child(1){
						font-size: 60rpx;
					}
					&:nth-child(2){
						font-size: 36rpx;
						margin-left: 7rpx;
					}
				}
			}
		}
		&-getjinbi{
			margin-top: 69rpx;
			display: flex;
			align-items: center;
			&-left{
				background-image: url('../../image/lefthb.png');
				width: 234rpx;
				height: 229rpx;
				background-size: 100% 100%;
				background-repeat: no-repeat;
				position: relative;
				
			}
			&-right{
				background-image: url('../../image/righthb.png');
				width: 217rpx;
				height: 264rpx;
				background-size: 100% 100%;
				background-repeat: no-repeat;
				position: relative;
			}
		}
		&-btn{
			background-image: url('../../image/kanbtn.png');
			width: 450rpx;
			height: 79rpx;
			background-repeat: no-repeat;
			background-size: 100% 100%;
			position: relative;
			margin: 83rpx 0rpx 20rpx;
			line-height: 79rpx;
			text-align: center;
			font-family: Inter, Inter;
			font-weight: 400;
			font-size: 32rpx;
			color: #FFFFFF;
		}
		&-tip{
			width: 112rpx;
			height: 41rpx;
			font-family: Noto Sans SC, Noto Sans SC;
			font-weight: normal;
			font-size: 28rpx;
			color: #A7A5A5;
			line-height: 33rpx;
		}
	}
	.xuanleft{
		position: absolute;
		top: 30rpx;
		left: 80rpx;
		display: flex;
		flex-direction: column;
		transform: rotate(-30deg);
		align-items: center;
		text{
			font-family: Inter, Inter;
			font-weight: normal;
			&:nth-child(1){
				color: #FF5B44;
				font-size: 18rpx;
			}
			&:nth-child(2){
				font-size: 30rpx;
				color: #ED7507;
			}
		}
	}
	.xuanright{
		position: absolute;
		top: 30rpx;
		left: 100rpx;
		display: flex;
		flex-direction: column;
		transform: rotate(24deg);
		align-items: center;
		text{
			font-family: Inter, Inter;
			font-weight: normal;
			&:nth-child(1){
				color: #FF5B44;
				font-size: 18rpx;
			}
			&:nth-child(2){
				font-size: 30rpx;
				color: #ED7507;
			}
		}
	}
</style>